// 渠道列表
import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? 'api/galaxy/std' : '/std'
export const getSourceList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/source/list',
    method: 'post',
    data
  })
// 新增渠道
export const createSource = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/source/create',
    method: 'post',
    data
  })
// 修改渠道
export const updateSource = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/source/update',
    method: 'post',
    data
  })
// 准入白名单
export const whiteList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/white/list',
    method: 'post',
    data
  })
// 问题分类列表
export const faqCategoryList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/faq-category/list',
    method: 'post',
    data
  })
// 问题分类列表
export const updateFaqCategory = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/faq-category/update',
    method: 'post',
    data
  })
// 问题分类列表
export const createFaqCategory = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/faq-category/create',
    method: 'post',
    data
  })
// 问题分类排序
export const moveFaqCategory = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/faq-category/move',
    method: 'post',
    data
  })
// 删除分类排序
export const deleteFaqCategory = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/faq-category/delete',
    method: 'post',
    data
  })
// 问题排序
export const moveFaq = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/faq/move',
    method: 'post',
    data
  })
// 问题分类列表
export const faqList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/faq/list',
    method: 'post',
    data
  })
// 问题列表
export const updateFaq = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/faq/update',
    method: 'post',
    data
  })
// 更新问题
export const createFaq = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/faq/create',
    method: 'post',
    data
  })
// 删除问题
export const deleteFaq = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/faq/delete',
    method: 'post',
    data
  })
